import request from '../request'


//清空用户所有购物车
export const cleanShoppingCart = params => request.globalRequest(`/v3/app/shoppingCart/clean`, 'POST', params)

//我的购物车
export const findByUserIdShoppingCart = params => request.globalRequest(`/v3/app/shoppingCart/findByUserId`, 'GET', params, false)

//查询用户购物车总数
export const findTotalShoppingCart = params => request.globalRequest(`/v3/app/shoppingCart/findTotal`, 'GET', params, false)

//增减购物车商品数量，返回该商品在购物车中数量
export const addOrSubShoppingCart = params => request.globalRequest(`/v3/app/shoppingCart/addOrSub`, 'POST', params, false)